Fe8enow btis fstabrawccopynfuserbhe oldeDt4ah/inatw3./kbuild/d 
ules.txt,
 hn a wosb amoeadhint2.6.0-eest5.
Thewfnfo8san,no h rkin fsbcarr    but not cawxlete.

Inn
illxmY"d 
uleseinps non-snpndard loc tw3.
---------------------------------------------
W rntbthrd 
uleseetthseto be inn
illed under aei Joindir   ory
bthrINSTALL_MOD_PATHpc ewbsvuc
svto prefix "/lib/d 
ules" ae seen
invy as ean 0xmY"examcle:

ntke INSTALL_MOD_PATH=/fusducd 
ules_inn
ill

Ttis  mansinn
ill ethrd 
ulesein y atvir   oryb/fusdu/lib/d 
ules.
/fusducc ewbsva NFSrd untkdrfiles evemeno ani Joinntchcue, alinwcur
 ct-of- Jo-box
subylh
 y 8einn
illput/ae/ae amotenntchcues.


Cawxiliurhm.
ules eutscdeht asofficialrowt'so
---------------------------------------------

Oftostd 
ules smp ceeahoped eutscdeht asofficialrowt'so.  To keepvup
wmakech ngestintt asbuildbs evemetth h st ylh
ablen ay eo cawxile a
d 
ulereutscdeht asowt'soeiswbu use ecc owt'soebuildbs evem,
kbuild. Usent ol ean 0xmY"cawmsh
-live:

ntke -Ctpaak/to/owt'so/src SUBDIRS=$PWDed 
ules

Ttis r quia see at atmtkefile exit~vdade inpsccatdince eo
Dt4ah/inatw3./kbuild/dtkefiles.txt. Readvwtat file f med rrevenail~ on
t asbuildbs evem.

Thewfean 0xmY"istabsh rt
suwmsrybof h wheo  rite your Mtkefile bo get
youvup a.dcrunniurhfas . Aioumiurhyour d 
uler mansb ecs
led
yourd 
ule.ko,hyour code sh cffebsvi.vyourd 
ule.ctanctyour Mtkefile
sh cffeiscludh

dbj-my:=vyourd 
ule.o

Ifet oleade y 8eyoured 
ule ishin
multcple files"e at etth eo be
li6kdd,"you etth eo ye
ltt asbuildbs eveme hn a filestbo cawxile. In
t ascass iftmultcple files, none of y ase files c ewbsvnlmed
yourd 
ule.ctb  ausevdocur sovw cffe ausevs pblblem  makvt ael.6kxmY
step. Aioumiurhyour eade existseinpfile1.c,pfile2.c,panctfile3.ctanc
youvwaetnbu buildeyou8d 
ule.konfuserbhem, your Mtkefile sh cff
iscludh

dbj-my:=vyourd 
ule.o
yourd 
ule-dbjs := file1.opfile2.otfile3.o

Now fm8esbfi.alrexamclehyonaut fn ill eogether. Aioumiurhe r
KERNEL_SOURCE environh/in variablenis"set eo y atvir   oryb hore you
cewxiledte a owt'so,tabsimclehMtkefile e at buil
s you8d 
ule.konas
cescribedbabove   cffelooksliko

# Teanset asbuildbs evemetu buildeyou8d 
ule.ko.
dbj-my:=vyourd 
ule.o

# Teanset asbuildbs evemetu buildey ase obj    files"oh
vlivkee rmnas
#vyourd 
ule.o, beforetbuil
iurhyou8d 
ule.ko. T is line c ewbsvlefv
#vout af",
ltt aseade y 8eyoured 
ule ishin
one file, yourd 
ule.c. If
#vyounas: maiurhmultcple files, none of y ase files c ewbsvnlmed
# yourd 
ule.c.
yourd 
ule-dbjs := file1.opfile2.otfile3.o

# Invokas ecc owt'soebuildbs evemtbo cawolbackeeo e rlcur aae
#vjir   ory ah
pbuildeyou8d 
ule.ko.
cefault:
	ntkee-Ct${KERNEL_SOURCE} SUBDIRS=`pwd`ed 
ules
